@import "./reset";
@import "./bootstrap";
@import "./common";

// 新闻动态主要内容
section {
    width: 100%;
    margin-top: 50px;
    padding-top: 40px;
    .container {
        // 新闻动态
        .top {
            div {
                a {
                    text-decoration: none;
                    h2 {
                        font-size: 30px;
                        color: #ff9046;
                        @media (max-width: 767px) {
                            text-align: center;
                        }
                    }
                }
            }
            // 新闻
            ul {
                margin-top: 40px;
                li {
                    margin-bottom: 30px;
                    @media (max-width: 767px) {
                        text-align: center;
                        padding: 0;
                    }
                    a {
                        position: relative;
                        img {
                            border: 1px solid #d0cfce;
                            border-radius: 5px;
                            &:hover {
                                box-shadow: 4px 4px 2px #797979;
                            }
                        }
                        p {
                            width: 100%;
                            line-height: 43px;
                            text-align: center;
                            font-size: 14px;
                            color: #fff;
                            background: black;
                            opacity: 0.6;
                            position: absolute;
                            bottom: -93px;
                            @media (max-width: 767px) {
                                left: 50%;
                                margin-left: -152px;
                            }
                        }
                    }
                }
                @media (min-width: 992px) and (max-width: 1199px) {
                    li {
                        padding: 5px;
                    }
                }
                li:nth-of-type(2) {
                    text-align: center;
                    @media (max-width: 991px) {
                        text-align: end;        
                    }
                    @media (max-width: 767px) {
                        text-align: center;        
                    }
                    p {
                        left: 50%;
                        margin-left: -152px;
                    }
                }
                li:nth-of-type(3) {
                    @media (min-width: 992px) {
                        text-align: end;        
                    } 
                    p {
                        right: 0;
                    }
                }
            }
        }

        // 新闻列表
        .bottom {
            .list {
                margin-bottom: 90px;
                li {
                    margin-top: 60px;
                    .item-img {
                        a {
                            div {
                                display: inline-block;
                                border: 1px solid #d0cfce;
                                border-radius: 3px;
                                &:hover {
                                    box-shadow: 4px 4px 2px #797979;
                                    transform: translateY(-5px);
                                }
                                img {
                                    margin: 5px;
                                }
                            }
                        }
                        @media (max-width: 767px) {
                            text-align: center;
                            margin-bottom: 30px;
                        }
                    }
                    .item-text {
                        div:first-of-type {
                            a {
                                text-decoration: none;
                                &:hover h3 {
                                    color: #ff6900;
                                }
                                h3 {
                                    font-size: 20px;
                                    color: black;
                                    margin-bottom: 0;
                                    margin-top: 0;
                                    @media (max-width: 767px) {
                                        font-size: 15px;
                                    }
                                }
                            }
                            span {
                                display: inline-block;
                                line-height: 46px;
                                font-size: 16;
                                color: black;
                            }
                            p {
                                font-size: 14px;
                                line-height: 25px;
                            }
                        }
                        div:last-of-type {
                            margin-top: 10px;
                            text-align: end;
                            button {
                                width: 100px;
                                height: 32px;
                                line-height: 32px;
                                font-size: 12px;
                                text-align: center;
                                color: #ff6900;
                                background-color: #fff;
                                border: 1px solid #ff6900;
                                border-radius: 16px;
                                &:hover {
                                    color: #fff;
                                    background-color: #ff6900;
                                }
                            }
                        }
                    }
                }
                .item1 {
                    .item-text {
                        div:first-of-type {
                            a {
                                h3 {
                                    color: #ff6900;
                                }
                            }
                        }
                        div:last-of-type {
                            button {
                                color: #fff;
                                background-color: #ff6900;
                            }
                        }
                    }
                }
            }
            // 分割线
            .line {
                @include display-box;
                justify-content: center;
                span {
                    width: 95%;
                    border-bottom: 1px dotted #a7a7a7;
                }
            }
            // 翻页
            .number {
                padding: 36px 0;
                @include display-box;
                justify-content: center;
                li {
                    &:hover a {
                        color: #fff;
                        background-color: #e34637;
                    }
                    a {
                        border: 1px solid #a7a7a7;
                        border-right: 0px;
                        display: inline-block;
                        font-size: 14px;
                        padding: 10px 15px;
                        color: black;
                        text-decoration: none;
                        @media (max-width: 767px) {
                            font-size: 12px;
                            padding: 5px 10px;
                        }
                    }
                    
                }
                li:first-of-type {
                    a {
                        border-radius: 5px 0 0 5px;
                    }
                }
                li:last-of-type {
                    a {
                        border-right: 1px;
                        border-radius: 0 5px 5px 0;
                    }
                }
            }
        }
    }
}